
	<?php if(isset($system_message)) echo $system_message;?>
	<div>
	<div class="panel">School Calendar</div>
	<div class="event_form">
		<?php
		echo("Click on a day in the calendar and type event in the textbox.");
		$att = array('id' => 'event_form', 'class' => 'admin-form');
		echo form_open(base_url() . 'admin/school_calendar', $att);
		?>
		<div class="input-block">
			<?php
				$i_att = array('id'=>'new_event','name'=>'new_event','value'=>'');
				echo form_label('Event :', 'event');
				echo form_input($i_att);	
			?>
		</div>
		<div class="input-block">
			<?php
				$b_att = array('id'=>'button','class'=>'tiny','name'=>'button', 'content'=>'Add Event'); // add event button attributes
				$rb_att = array('id'=>'reset','class'=>'tiny button', 'name'=>'reset', 'value'=>'Cancel'); // reset button attributes
				$db_att = array('id'=>'delete','class'=>'tiny', 'name'=>'delete', 'content'=>'Delete Event'); // delete event attributes
				echo form_button($b_att);
				echo form_button($db_att);
				echo form_reset($rb_att);
				echo form_close();
			?>
		</div>
	</div>
	<?php if(!empty($school_calendar)){
		echo $school_calendar;
	}
	?>
	
	</div>